home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19980424-19980901 / 000360_news@newsmaster….columbia.edu _Wed Aug 12 01:02:50 1998.msg < prev    next >
Internet Message Format  |  1998-08-31  |  7KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id BAA19265
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 12 Aug 1998 01:02:50 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id BAA21606
  7.     for kermit.misc@watsun; Wed, 12 Aug 1998 01:02:49 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!jaltman
  9. From: jaltman@watsun.cc.columbia.edu (Jeffrey Altman)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: K95 telnet to dosemu under Linux
  12. Date: 12 Aug 1998 05:02:42 GMT
  13. Organization: Columbia University
  14. Lines: 153
  15. Message-ID: <6qr7li$nb7$1@apakabar.cc.columbia.edu>
  16. References: <PHK01Yv1uIJW084yn@eskimo.com>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:9077
  19.  
  20. In article <PHK01Yv1uIJW084yn@eskimo.com>,
  21. Frank Sergeant <frank.sergeant@pobox.com> wrote:
  22. : I am trying to use Kermit95 (version 1.1.17) on W95 to
  23. : telnet to a Linux machine running the DOS emulator (dosemu
  24. : version 0.66.7) to run a Clipper application.
  25. : I have made some progress with this but I still have a
  26. : few problems.
  27.  
  28. : DISPLAY:
  29. : I've tried various terminal emulations but the best seems
  30. : to be K95's LINUX.  Dosemu has a configuration file where
  31. : I can set the character set.  The choices seem to be 'ibm'
  32. : or 'latin'.  When I set dosemu to 'ibm', the box drawing
  33. : characters show correctly but all the text is unreadable.
  34. : When I set dosemu to 'latin', the text is readable but the
  35. : box drawing characters are substitutes.  I suppose it is
  36. : dosemu that decides on the substitutes (?).  For example,
  37. : what should be a double horizontal line comes over as an
  38. : equal sign (0x3D) and what should be a vertical double
  39. : line comes over as an "I" (0x49).
  40.  
  41. So what does the documentation say that the "ibm" character-set
  42. is?  Is it CP437 or CP850?
  43.  
  44. And what is your Code Page set to on Windows 95?  
  45. Most likely it is CP437.
  46.  
  47. The SHOW CHARACTER-SETS command will tell you what the code
  48. page is set to in K95.
  49.  
  50. : The best I've come up with so far is this:
  51. :   K95  LINUX,  25x80, no status line, latin1-iso
  52.  
  53. :   Linux/dosemu   latin
  54.  
  55. My guess would be "ibm" on dosemu and "set term remote cp437"
  56. in K95.  I would also try "SCOANSI" instead of "Linux" since
  57. it is a PC based terminal emulation unlike the Linux console
  58. with is VT terminal based.
  59.  
  60. : KEYSTROKES:
  61. : Most of the keys seem to work ok.  The exceptions are
  62. : Ctrl-PgDn and Ctrl-PgUp and alt-C and other alt- keys.
  63.  
  64. That is because these keystrokes are mapped to K95 functions.
  65. The linux console and scoansi do not define these keys.
  66.  
  67. : I've managed to turn on Ctrl-PgDn and Ctrl-PgUp by
  68. : putting the following in a CLIPPER.KSC file and then
  69. : 'taking' it:
  70. :    set key \1314 \30     ; Ctrl-PageDown
  71. :    set key \5410 \30     ; Gray-Ctrl-PageDown
  72. :    set key \1313 \31     ; Ctrl-PageUp
  73. :    set key \5409 \31     ; Gray-Ctrl-PageUp
  74.  
  75. This defines the keystrokes to be Control characters, RS and US.
  76. This is not a normal mapping.  If this is what they are supposed
  77. to be then you will need documentation for this as part of dosemu.
  78.  
  79. : With that, the Ctrl-PgUp keys work perfectly but the
  80. : Ctrl-PgDn keys requires pressing them twice (any idea
  81. : why or how to fix that?).  (I discovered the numbers
  82. : 30 and 31 by looking in the CLIPPER INKEY.CH include
  83. : file.)
  84.  
  85. This doesn't make any sense unless you have also redefined the 
  86. K95 escape character to be Control-Underscore.  The normal 
  87. escape character is Control-Right Bracket.
  88.  
  89. : When I try a similar approach for alt-C
  90. :     set key \2147 \302    ; Alt-C
  91. : it doesn't work right.  Alt-C gets set to \46 instead.
  92. : (I note that 302 mod 256 is 46, so I assume that the
  93. : codes are limited to a single byte.)  
  94.  
  95. What is \302 supposed to be? 
  96.  
  97. : The reason I
  98. : wanted to set it to \302 is that is the code used
  99. : by the Clipper application for testing whether an
  100. : alt-C key was pressed.  I suppose I'll run into the
  101. : same problem with all the alt- keys.  Any ideas on
  102. : how to work around this?
  103.  
  104. Try 
  105.  
  106.   SET KEY \01\46
  107.  
  108. : I tried turning on PCTERM by typing Ctrl-CapsLock while
  109. : connected.  It didn't seem to do anything (and alt-X
  110. : still returned me to command mode).  I also tried typing
  111. :   SET TERM PCTERM
  112. : in command mode, but got the error "?No keywords match -
  113. : pcterm".  I wondered if I might have seen a mention that
  114. : PCTERM wasn't working in K95 1.1.17, but couldn't find
  115. : such a mention when I tried to find it again.  Even if
  116. : I could turn PCTERM on, I'm not sure whether the Linux
  117. : box and/or dosemu would be set to cope with it.
  118.  
  119. As documented in the New Bugs file:
  120.  
  121.   ftp://ftp.kermit-project.org/kermit/k95/newbugs.txt
  122.  
  123. PCTERM functionality was left out of 1.1.17 due to a fluke
  124. compile flag error.  However, PCTERM is not the solution to your 
  125. keyboard problem.  You need to read your INKEY.CH file and
  126. create an appropriate keymap file for K95.
  127.  
  128. : SUMMARY:
  129. : So very much is working well that I am hopeful some
  130. : or all of the remaining problems can be solved or worked
  131. : around.  The most important probably is the box drawing
  132. : character problem  (better to look good than to work good,
  133. : as Billy Crystal might say).  Users could live with having
  134. : to type Ctrl-PgDn twice.  I might substitute alternate
  135. : keystrokes for whatever functions are now invoked by alt-
  136. : keys.
  137. : Suggestions gratefully accepted.  When/if I get it
  138. : all working, I'll be glad to post the final dosemu.conf
  139. : and CLIPPER.KSC files.
  140. : I also hope to install a later (non-stable?) version of
  141. : dosemu in case that changes anything for the better.
  142. : I note that if I log into the Linux box from another Linux
  143. : box and use Linux's telnet, the display does have both
  144. : proper box drawing characters and readable text (in that
  145. : case I set dosemu to 'ibm').  There, though, I haven't
  146. : found a solution yet to turning on the Ctrl-PgDn and
  147. : Ctrl-PgUp keys, however the alt- keys work ok.  Is that
  148. : a clue that PCTERM would be useful from K95?  However,
  149. : for the application I have in mind, it is very unlikely
  150. : that running Linux on all the workstations will be
  151. : acceptable, so I'm really hoping for a K95 solution.
  152.  
  153. Its a clue that you should be using "ibm" and CP437.
  154.  
  155. What is the TERM type when you Telnet from Linux?
  156.  
  157.     Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
  158.                  The Kermit Project * Columbia University
  159.               612 West 115th St #716 * New York, NY * 10025
  160.   http://www.kermit-project.org/k95.html * kermit-support@kermit-project.org